

	<div id="main">

		<div id="main-header">
			<h1>Administration</h1>
			<h2>Project - Edit</h2>
			<p>Edit a project in your database.</p>
		</div>

		<div id="main-side-content">

			<!-- 
				validation_errors() is a codeigniter function, available through the Form Validation library.
				This code checks whether validation_errors() returns anything (were there errors?).
			-->
			<?php if (strlen(validation_errors()) > 0) : ?>
			<div id="side-errors">
				<h1>Errors...</h1>

				<ul>
					<?php echo validation_errors('<li>','</li>'); ?>
				</ul>
			</div>
			<?php endif; ?>

			<div id="side-notes">
				<h1>Notes...</h1>		

				<ul>
					<li>Provide <strong>a good</strong> project description - people prefer the stuff with shiny packaging.</li>
					<li>The project's access option refers to yourself (private), everyone (public) or those you are collaborating with (team). <strong>Note:</strong> team is not yet implemented; if you select 'team', it will be set as 'private'.</li>
					<li>Changes made on this page cannot be undone.</li>
				</ul>	
			</div>

		</div>

		<div id="main-content">

			<p>Seen a typo? Need to update some old information? Do it here.</p>

			<h2>Edit Project...</h2>

			<p>Use the form below to edit your project.</p>

			<form class="ppt-form" method="post" action="<?=current_url()?>">

				<fieldset>

					<div class='form-element'>
						<div class='form-label'>
							<label for="project_name">Project Name:</label>
						</div>
						<div class='form-input'>
							<input value="<?php echo set_value('project_name', $project->project_name); ?>"
							 name="project_name" type="text" id="project_name" />
						</div>
					</div>
					<div class='form-element'>
						<div class='form-label'>
							<label for="project_author">Project Author:</label>
						</div>
						<div class='form-input'>
							<input value="<?php echo set_value('project_author', $project->project_author); ?>"
							name="project_author" type="text" id="project_author" />
						</div>
					</div>
					<div class='form-element'>
						<div class='form-label'>
							<label for="project_description">Project Description:</label>
						</div>
						<div class='form-input'>
							<textarea name="project_description" cols="" rows="" id="project_description"><?php echo set_value('project_description', $project->project_desc); ?></textarea>
						</div>
					</div>
					<div class='form-element no-focus'>
						<div class='form-label'>
							<label for="submit">&nbsp;</label>
						</div>
						<div class='form-input'>
							<input name="edit" type="submit" id="submit" />
						</div>
					</div>


				</fieldset>

			</form>

		</div>

	</div>